package com.tiku.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tiku.common.ResultJson;
import com.tiku.entity.ProductSpecifications;
import com.tiku.service.ProductSpecificationsService;
import com.tiku.mapper.ProductSpecificationsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ProductSpecificationsServiceImpl extends ServiceImpl<ProductSpecificationsMapper, ProductSpecifications>
    implements ProductSpecificationsService{

    @Override
    public ResultJson getUserActiveTypeById(String specId) {

        List<ProductSpecifications> list = list(new LambdaQueryWrapper<>(ProductSpecifications.class).eq(ProductSpecifications::getSetMealId, specId));

        return ResultJson.success(list);
    }
}




